import React from "react"

export default class App extends React.Component {
  render () {
    return (
      <>
        <h2 ref="title">App Title</h2>
        <button onClick={() => (this.refs.title as any).innerHTML}>读取标题</button>
      </>
    )
  }
}